package subject_set.lanqiao;

import java.util.Scanner;

/**
 * @author haomin
 * @date 2022/10/25 20:56
 **/
public class Num9 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int max = 0;
        int min = 101;
        double mid = 0;
        int count = Integer.parseInt(scan.nextLine());
        while(scan.hasNextLine()){
            int score = Integer.parseInt(scan.nextLine());
            max = Math.max(max, score);
            min = Math.min(min, score);
            mid += score;
            count ++;
        }
        System.out.println(max);
        System.out.println(min);
        System.out.printf("%.2f", mid / count);

        scan.close();
    }
}